import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

// 先创建 Vue 应用实例
const app = createApp(App);

// 注册 Element Plus Icons Vue 的图标为全局组件
for (const key in ElementPlusIconsVue) {
  app.component(key, ElementPlusIconsVue[key]);
}

app.use(ElementPlus).use(store).use(router).mount('#app')